<% @page_name = "Register" %>

<h1><%= @page_name %></h1>

<%= error_messages_for :user %>

<%- form_for :user, :url => users_path do |f| -%>
<p><label for="username">Username</label>: <%= f.text_field :username, :maxlength => 30 %></p>

<p><label for="email">E-mail address</label>: <%= f.text_field :email %></p>

<p><label for="password">Password</label>: <%= f.password_field :password %></p>

<p><%= submit_tag 'Register' %></p>
<%- end -%>
